<form class="form-horizontal" method="post">
	
	<input type="hidden" name="action" value="modify_board" />
	<input type="hidden" name="idx" value="<?php echo $result['idx']?>" />

	<div class="btn-group" style="margin-bottom:30px">
		<a href="<?php echo $href?>/<?php echo $kong->id ?>/board/<?php echo $result['id']?>" class="btn disabled">기본</a>
		<a href="<?php echo $href?>/<?php echo $kong->id ?>/board/<?php echo $result['id']?>/category" class="btn">카테고리</a>
		<a href="<?php echo $href?>/<?php echo $kong->id ?>/board/<?php echo $result['id']?>/grant" class="btn">권한</a>
	</div>
	
	<div class="control-group">
		<label class="control-label" for="id">아이디</label>
		<div class="controls">
			<input type="text" name="id" id="id" value="<?php echo $result['id']?>" required="1" placeholder="ID" autofocus="1" />
		</div>
	</div>
	
	<div class="control-group">
		<label class="control-label" for="name">제목</label>
		<div class="controls">
			<input type="text" name="name" id="name" value="<?php echo $result['name']?>" required="1" placeholder="Name" />
		</div>
	</div>
	
	<div class="control-group">
		<label class="control-label" for="html">HTML사용</label>
		<div class="controls">
			<input type="checkbox" name="html" id="html" value="1"<?php echo ($result['options']['html'])?" checked":""?> />
		</div>
	</div>
	
	<div class="control-group">
		<div class="controls">
			<button type="submit" name="submit" id="submit" class="btn btn-warning">수정</button>
			<a data-toggle="modal" href="#myDelete" class="btn">삭제</a>
		</div>
	</div>
</form>


<form class="form-horizontal" method="post">
	<input type="hidden" name="action" value="delete_board" />
	<input type="hidden" name="idx" value="<?php echo $result['idx']?>" />
	
	<div id="myDelete" class="modal hide fade">
		<div class="modal-header">
			<button type="button" data-dismiss="modal" class="close">&times;</button>
			<h4>정말로 삭제합니까?</h4>
		</div>
		<div class="modal-body"><p>한번 삭제하면 다시는 돌이킬 수 없습니다.</p></div>
		<div class="modal-footer">
			<a href="#" data-dismiss="modal" class="btn">닫기</a>
			<button type="submit" class="btn btn-warning">삭제</button>
		</div>
	</div>
</form>
